SET(CMAKE_SYSTEM_NAME Generic)
set(UNIX TRUE)

# specify the cross compiler
SET(CMAKE_C_COMPILER   /home/rootqt/SylixOS/gcc-arm-sylixos-eabi/bin/arm-sylixos-eabi-gcc)
SET(CMAKE_CXX_COMPILER /home/rootqt/SylixOS/gcc-arm-sylixos-eabi/bin/arm-sylixos-eabi-g++)

# where is the target environment 
SET(CMAKE_FIND_ROOT_PATH  /home/rootqt/SylixOS/lib)
set(OPENSSL_ROOT_DIR /home/rootqt/SylixOS/lib)

# search for programs in the build host directories (not necessary)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

# configure Boost and Qt
SET(QT_QMAKE_EXECUTABLE /opt/armv7-sylixos-qt-4.8.7/bin/qmake)

set(CMAKE_C_FLAGS -mcpu=cortex-a9 -mfloat-abi=softfp -mfpu=vfpv3 -fsigned-char -fno-short-enums -fno-strict-aliasing -fPIC -DSYLIXOS -I/home/rootqt/SylixOS/sylixos-base/libsylixos/SylixOS -I/home/rootqt/SylixOS/sylixos-base/libsylixos/SylixOS/include -I/home/rootqt/SylixOS/sylixos-base/libsylixos/SylixOS/include/network)

set(CMAKE_CXX_FLAGS -mcpu=cortex-a9 -mfloat-abi=softfp -mfpu=vfpv3 -fsigned-char -fno-short-enums -fno-strict-aliasing -fPIC -DSYLIXOS -I/home/rootqt/SylixOS/sylixos-base/libsylixos/SylixOS -I/home/rootqt/SylixOS/sylixos-base/libsylixos/SylixOS/include -I/home/rootqt/SylixOS/sylixos-base/libsylixos/SylixOS/include/network)

set(CMAKE_EXE_LINKER_FLAGS -nostdlib -fPIC -shared -L/home/rootqt/SylixOS/sylixos-base/libsylixos/Release -L/home/rootqt/SylixOS/sylixos-base/libsylixos/Debug -lstdc++ -lcextern -lvpmpdm -lm -lgcc -ldsohandle)

SET(CMAKE_C_COMPILER_FORCED TRUE)
SET(CMAKE_CXX_COMPILER_FORCED TRUE)
